package com.hqully.labmanage.mapper;

import com.hqully.labmanage.domain.dto.FaultRecordReadDTO;
import com.hqully.labmanage.domain.entity.FaultRecordRead;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 针对数据库表[faultRecordRead]的操作
 * </p>
 *
 * @author hqully <br>
 * @entity {@link FaultRecordRead}
 * @date 2022-10-14 10:16:41 <br>
 * @version 1.0
 */
@Mapper
public interface FaultRecordReadMapper {

    /**
     * <p>
     * 根据[faultRecordReadDTO]的参数条件查询pojo列表
     * </p>
     *
     * @param faultRecordReadDTO 查询参数
     * @return {@link List<FaultRecordReadDTO>} pojoDTO列表
     * @date 2022-10-14 10:16:41 <br>
     * @author hqully <br>
     */
    List<FaultRecordReadDTO> listFaultRecordReads(FaultRecordReadDTO faultRecordReadDTO);

    /**
     * <p>
     * 添加pojo
     * </p>
     *
     * @param faultRecordRead pojo实体类
     * @return {@link int}
     * @date 2022-10-14 10:16:41 <br>
     * @author hqully <br>
     */
    int addFaultRecordRead(FaultRecordRead faultRecordRead);

    /**
     * <p>
     * 更新pojo
     * </p>
     *
     * @param faultRecordRead pojo
     * @return {@link int}
     * @date 2022-10-14 10:16:41 <br>
     * @author hqully <br>
     */
    int updateFaultRecordRead(FaultRecordRead faultRecordRead);
    
    /**
     * <p>
     * 通过[id]删除pojo
     * </p>
     *
     * @param id pojoid
     * @return {@link int}
     * @date 2022-10-14 10:16:41 <br>
     * @author hqully <br>
     */
    int deleteFaultRecordReadById(@Param("id") Integer id);

}

